package com.pureut.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.quality.domain.QualitySchemeConfiguration;
import com.pureut.quality.domain.dto.QualitySchemeConfigurationDto;
import com.pureut.quality.domain.vo.QualitySchemeConfigurationVo;

import java.util.List;

/***
 * 检验方案配置表service
 * Author:C
 * Date:2023/02/02 17:08
 * @DESC
 */
public interface QualitySchemeConfigurationService extends IService<QualitySchemeConfiguration> {

    /**
     * 检验方案配置列表
     */
    List<QualitySchemeConfigurationDto> getSchemeConfigurationList(QualitySchemeConfigurationVo qualitySchemeConfigurationVo);

    /**
     * 检验方案配置新增
     */
    boolean add(QualitySchemeConfigurationVo qualitySchemeConfigurationVo) throws Exception;

    /**
     * 检验方案查看
     */
    QualitySchemeConfigurationDto view(long id);

    /**
     * 修改检验方案配置
     */
    boolean updateConfiguration(QualitySchemeConfigurationVo qualitySchemeConfigurationVo);

    /**
     * 删除
     */
    boolean delete(String idStr);

    /**
     * 检验是否配置方案
     */
    boolean check(QualitySchemeConfigurationVo qualitySchemeConfigurationVo);
}
